import {routerMiddleware} from 'connected-react-router'
import {applyMiddleware,createStore,compose} from 'redux';
import * as reducer from './reducers/index';



export const historyRouter = reducer.history;
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;


export default function configStore(){
  return createStore(
    reducer.reducers,
    composeEnhancers(
      applyMiddleware(
        routerMiddleware(reducer.history)
      )
  ))
} 



